//
//  Stack.h
//  xmldemo
//
//  Created by fangdi on 09-9-14.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface Stack : NSObject {
	@private
	NSMutableArray *array;
	int headIndex;
	int tailIndex;
}

-(void)push: (NSObject *)obj;
-(NSObject *)pop;
-(BOOL)isEmpty;
-(NSObject *)getFirst;
-(NSObject *)getLast;
@end
